package com.wuxiaofan.api;

import com.wuxiaofan.annotation.MyLog;
import com.wuxiaofan.service.AppService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("app")
public class AppApi {

    @Resource
    private AppService appService;

    @RequestMapping("say")
    @MyLog(desc="say")
    public String say(){
        return appService.sayHello();
    }

}
